# -*- coding: utf-8 -*-
# @Author：fanmingxiang@touty.io
# @Date  ：2022/2/28 10:59
from selenium.webdriver.common.by import By


# 搜索框
search_box = (By.ID, 'com.tencent.mm:id/he6')
# 搜索输入框
search_input = By.ID, 'com.tencent.mm:id/bxz'
# 公众号
official_account = By.ID, 'com.tencent.mm:id/ir3'
# 一级菜单
first_menu = By.XPATH, '//*[@text="热门活动"]'
# 二级菜单
second_menu = By.XPATH, '//*[@text="表单自动测试"]'
# 抽奖次数
draw_number = By.CSS_SELECTOR, '.limit-num'
# 抽奖按钮
draw_button = By.CSS_SELECTOR, '.start-btn'
# 中奖信息
draw_win_text = By.CSS_SELECTOR, '.ant-modal-body'
# 关闭弹框
close_x = By.CSS_SELECTOR, '.ant-modal-close-x'
# 满减卷
win_text1 = By.XPATH, '(//*[@text="京东悦鲜活12元满减券表单"])[last()]'
# 周卡
win_text2 = By.XPATH, '(//*[@text="悦鲜活A2周卡表单"])[last()]'
# 月卡
win_text2 = By.XPATH, '(//*[@text="悦鲜活A2月卡表单"])[last()]'
# 姓名框
name_box = By.XPATH, '//*[@placeholder="输入姓名"]'
# 手机号框
phone_box = By.XPATH, '//*[@placeholder="输入手机号"]'
# 省市下拉框
city_box = By.CSS_SELECTOR, '.ant-cascader-picker-label'
# 地址框
address_box = By.XPATH, '//*[@placeholder="输入详细地址"'
# 提交
submit_btn = By.CSS_SELECTOR, '.ant-btn'
